@layout("/common/_form.html",{js:["/assets/banner/banner_add.js"],css:["/assets/expand/module/formSelects/formSelects-v4.css"]}){
<style>
	.inline,.layui-upload {
		display:flex;
		align-items: center;
	}
	.layui-upload-list {
		margin-left:20px
	}
	.imgbox {
		width:100px;
		height:100px;
		overflow: hidden;
		display: flex;
    	align-items: center;
	}
	.layui-upload-img {
		width:100%
	}
</style>
<form class="layui-form" id="bannerForm" lay-filter="bannerForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md12 inline">
                        <label class="layui-form-label">轮播图<span style="color: red;">*</span></label>
                        <input type="hidden" name="url" id="url" value="" />
                        <div class="layui-upload">
                            <button type="button" class="layui-btn" id="picBtn">上传图片</button>
                            <div class="layui-upload-list">
                            	<div class="imgbox">
                            		<img class="layui-upload-img" id="picPre">
                            	</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="type" lay-filter="type">
                                <option value="1">首页轮播</option>
                                <option value="2">小区页轮播</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}